package com.hqyj.shop.dao;

import com.hqyj.shop.pojo.Detail;
import com.hqyj.shop.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface DetailDao {

    //根据订单详情id（detail_id）查询订单信息
    List<Order> queryByOrderId();

//    int addOneOrder(Detail detail);

    //对订单的状态进行更新
//    int updateOneDetail(String status);

    int updateOneDetail(@Param("orderId") int orderId,@Param("status") String status);
//    List<Order> updateOneDetail(String status);
}
